home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / contrib / koma-script / scrtime.dtx < prev    next >
LaTeX Document  |  1995-03-10  |  11.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX 2e document text default
99% file LaTeX document text default
98% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 0a 25 20 5c 69 66 66 | 61 6c 73 65 0a 25 0a 25 |%.% \iff|alse.%.%|
|00000010| 20 73 63 72 74 69 6d 65 | 2e 64 74 78 20 43 6f 70 | scrtime|.dtx Cop|
|00000020| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 39 34 20 |yright (|C) 1994 |
|00000030| 4d 61 72 6b 75 73 20 4b | 6f 68 6d 0a 25 0a 25 20 |Markus K|ohm.%.% |
|00000040| 54 68 69 73 20 66 69 6c | 65 20 69 73 20 70 61 72 |This fil|e is par|
|00000050| 74 20 6f 66 20 74 68 65 | 20 4c 61 54 65 58 32 65 |t of the| LaTeX2e|
|00000060| 20 4b 4f 4d 41 2d 53 63 | 72 69 70 74 2d 42 75 6e | KOMA-Sc|ript-Bun|
|00000070| 64 6c 65 0a 25 0a 25 20 | 49 74 20 73 68 6f 75 6c |dle.%.% |It shoul|
|00000080| 64 20 62 65 20 64 69 73 | 74 72 69 62 75 74 65 64 |d be dis|tributed|
|00000090| 20 55 4e 43 48 41 4e 47 | 45 44 20 61 6e 64 20 74 | UNCHANG|ED and t|
|000000a0| 6f 67 65 74 68 65 72 20 | 77 69 74 68 20 61 6c 6c |ogether |with all|
|000000b0| 20 6f 74 68 65 72 0a 25 | 20 66 69 6c 65 73 20 69 | other.%| files i|
|000000c0| 6e 20 74 68 65 20 4b 4f | 4d 41 2d 53 63 72 69 70 |n the KO|MA-Scrip|
|000000d0| 74 2d 42 75 6e 64 6c 65 | 2e 20 54 68 65 20 66 69 |t-Bundle|. The fi|
|000000e0| 6c 65 20 72 65 61 64 6d | 65 2e 74 78 74 20 63 6f |le readm|e.txt co|
|000000f0| 6e 74 61 69 6e 73 20 61 | 20 6c 69 73 74 0a 25 20 |ntains a| list.% |
|00000100| 6f 66 20 61 6c 6c 20 74 | 68 65 73 65 20 66 69 6c |of all t|hese fil|
|00000110| 65 73 2e 0a 25 0a 25 20 | 41 20 6d 6f 64 69 66 69 |es..%.% |A modifi|
|00000120| 65 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |ed versi|on of th|
|00000130| 69 73 20 66 69 6c 65 20 | 6d 61 79 20 62 65 20 64 |is file |may be d|
|00000140| 69 73 74 72 69 62 75 74 | 65 64 2c 20 62 75 74 20 |istribut|ed, but |
|00000150| 69 74 20 73 68 6f 75 6c | 64 0a 25 20 62 65 20 64 |it shoul|d.% be d|
|00000160| 69 73 74 72 69 62 75 74 | 65 64 20 77 69 74 68 20 |istribut|ed with |
|00000170| 61 20 44 49 46 46 45 52 | 45 4e 54 20 6e 61 6d 65 |a DIFFER|ENT name|
|00000180| 2e 20 43 68 61 6e 67 65 | 64 20 66 69 6c 65 73 20 |. Change|d files |
|00000190| 6d 75 73 74 20 62 65 0a | 25 20 64 69 73 74 72 69 |must be.|% distri|
|000001a0| 62 75 74 65 64 20 54 4f | 47 45 54 48 45 52 20 57 |buted TO|GETHER W|
|000001b0| 49 54 48 20 41 20 43 4f | 4d 50 4c 45 54 45 20 41 |ITH A CO|MPLETE A|
|000001c0| 4e 44 20 55 4e 43 48 41 | 4e 47 45 44 20 64 69 73 |ND UNCHA|NGED dis|
|000001d0| 74 72 69 62 75 74 69 6f | 6e 0a 25 20 6f 66 20 74 |tributio|n.% of t|
|000001e0| 68 65 73 65 20 66 69 6c | 65 73 2e 0a 25 0a 25 20 |hese fil|es..%.% |
|000001f0| 5c 43 68 61 72 61 63 74 | 65 72 54 61 62 6c 65 0a |\Charact|erTable.|
|00000200| 25 20 20 7b 55 70 70 65 | 72 2d 63 61 73 65 20 20 |% {Uppe|r-case |
|00000210| 20 20 5c 41 5c 42 5c 43 | 5c 44 5c 45 5c 46 5c 47 | \A\B\C|\D\E\F\G|
|00000220| 5c 48 5c 49 5c 4a 5c 4b | 5c 4c 5c 4d 5c 4e 5c 4f |\H\I\J\K|\L\M\N\O|
|00000230| 5c 50 5c 51 5c 52 5c 53 | 5c 54 5c 55 5c 56 5c 57 |\P\Q\R\S|\T\U\V\W|
|00000240| 5c 58 5c 59 5c 5a 0a 25 | 20 20 20 4c 6f 77 65 72 |\X\Y\Z.%| Lower|
|00000250| 2d 63 61 73 65 20 20 20 | 20 5c 61 5c 62 5c 63 5c |-case | \a\b\c\|
|00000260| 64 5c 65 5c 66 5c 67 5c | 68 5c 69 5c 6a 5c 6b 5c |d\e\f\g\|h\i\j\k\|
|00000270| 6c 5c 6d 5c 6e 5c 6f 5c | 70 5c 71 5c 72 5c 73 5c |l\m\n\o\|p\q\r\s\|
|00000280| 74 5c 75 5c 76 5c 77 5c | 78 5c 79 5c 7a 0a 25 20 |t\u\v\w\|x\y\z.% |
|00000290| 20 20 44 69 67 69 74 73 | 20 20 20 20 20 20 20 20 | Digits| |
|000002a0| 5c 30 5c 31 5c 32 5c 33 | 5c 34 5c 35 5c 36 5c 37 |\0\1\2\3|\4\5\6\7|
|000002b0| 5c 38 5c 39 0a 25 20 20 | 20 45 78 63 6c 61 6d 61 |\8\9.% | Exclama|
|000002c0| 74 69 6f 6e 20 20 20 5c | 21 20 20 20 20 20 44 6f |tion \|! Do|
|000002d0| 75 62 6c 65 20 71 75 6f | 74 65 20 20 5c 22 20 20 |uble quo|te \" |
|000002e0| 20 20 20 48 61 73 68 20 | 28 6e 75 6d 62 65 72 29 | Hash |(number)|
|000002f0| 20 5c 23 0a 25 20 20 20 | 44 6f 6c 6c 61 72 20 20 | \#.% |Dollar |
|00000300| 20 20 20 20 20 20 5c 24 | 20 20 20 20 20 50 65 72 | \$| Per|
|00000310| 63 65 6e 74 20 20 20 20 | 20 20 20 5c 25 20 20 20 |cent | \% |
|00000320| 20 20 41 6d 70 65 72 73 | 61 6e 64 20 20 20 20 20 | Ampers|and |
|00000330| 5c 26 0a 25 20 20 20 41 | 63 75 74 65 20 61 63 63 |\&.% A|cute acc|
|00000340| 65 6e 74 20 20 5c 27 20 | 20 20 20 20 4c 65 66 74 |ent \' | Left|
|00000350| 20 70 61 72 65 6e 20 20 | 20 20 5c 28 20 20 20 20 | paren | \( |
|00000360| 20 52 69 67 68 74 20 70 | 61 72 65 6e 20 20 20 5c | Right p|aren \|
|00000370| 29 0a 25 20 20 20 41 73 | 74 65 72 69 73 6b 20 20 |).% As|terisk |
|00000380| 20 20 20 20 5c 2a 20 20 | 20 20 20 50 6c 75 73 20 | \* | Plus |
|00000390| 20 20 20 20 20 20 20 20 | 20 5c 2b 20 20 20 20 20 | | \+ |
|000003a0| 43 6f 6d 6d 61 20 20 20 | 20 20 20 20 20 20 5c 2c |Comma | \,|
|000003b0| 0a 25 20 20 20 4d 69 6e | 75 73 20 20 20 20 20 20 |.% Min|us |
|000003c0| 20 20 20 5c 2d 20 20 20 | 20 20 50 6f 69 6e 74 20 | \- | Point |
|000003d0| 20 20 20 20 20 20 20 20 | 5c 2e 20 20 20 20 20 53 | |\. S|
|000003e0| 6f 6c 69 64 75 73 20 20 | 20 20 20 20 20 5c 2f 0a |olidus | \/.|
|000003f0| 25 20 20 20 43 6f 6c 6f | 6e 20 20 20 20 20 20 20 |% Colo|n |
|00000400| 20 20 5c 3a 20 20 20 20 | 20 53 65 6d 69 63 6f 6c | \: | Semicol|
|00000410| 6f 6e 20 20 20 20 20 5c | 3b 20 20 20 20 20 4c 65 |on \|; Le|
|00000420| 73 73 20 74 68 61 6e 20 | 20 20 20 20 5c 3c 0a 25 |ss than | \<.%|
|00000430| 20 20 20 45 71 75 61 6c | 73 20 20 20 20 20 20 20 | Equal|s |
|00000440| 20 5c 3d 20 20 20 20 20 | 47 72 65 61 74 65 72 20 | \= |Greater |
|00000450| 74 68 61 6e 20 20 5c 3e | 20 20 20 20 20 51 75 65 |than \>| Que|
|00000460| 73 74 69 6f 6e 20 6d 61 | 72 6b 20 5c 3f 0a 25 20 |stion ma|rk \?.% |
|00000470| 20 20 43 6f 6d 6d 65 72 | 63 69 61 6c 20 61 74 20 | Commer|cial at |
|00000480| 5c 40 20 20 20 20 20 4c | 65 66 74 20 62 72 61 63 |\@ L|eft brac|
|00000490| 6b 65 74 20 20 5c 5b 20 | 20 20 20 20 42 61 63 6b |ket \[ | Back|
|000004a0| 73 6c 61 73 68 20 20 20 | 20 20 5c 5c 0a 25 20 20 |slash | \\.% |
|000004b0| 20 52 69 67 68 74 20 62 | 72 61 63 6b 65 74 20 5c | Right b|racket \|
|000004c0| 5d 20 20 20 20 20 43 69 | 72 63 75 6d 66 6c 65 78 |] Ci|rcumflex|
|000004d0| 20 20 20 20 5c 5e 20 20 | 20 20 20 55 6e 64 65 72 | \^ | Under|
|000004e0| 73 63 6f 72 65 20 20 20 | 20 5c 5f 0a 25 20 20 20 |score | \_.% |
|000004f0| 47 72 61 76 65 20 61 63 | 63 65 6e 74 20 20 5c 60 |Grave ac|cent \`|
|00000500| 20 20 20 20 20 4c 65 66 | 74 20 62 72 61 63 65 20 | Lef|t brace |
|00000510| 20 20 20 5c 7b 20 20 20 | 20 20 56 65 72 74 69 63 | \{ | Vertic|
|00000520| 61 6c 20 62 61 72 20 20 | 5c 7c 0a 25 20 20 20 52 |al bar |\|.% R|
|00000530| 69 67 68 74 20 62 72 61 | 63 65 20 20 20 5c 7d 20 |ight bra|ce \} |
|00000540| 20 20 20 20 54 69 6c 64 | 65 20 20 20 20 20 20 20 | Tild|e |
|00000550| 20 20 5c 7e 7d 0a 25 0a | 25 3c 2a 64 74 78 3e 0a | \~}.%.|%<*dtx>.|
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 50 72 6f | | \Pro|
|00000570| 76 69 64 65 73 46 69 6c | 65 7b 73 63 72 74 69 6d |videsFil|e{scrtim|
|00000580| 65 2e 64 74 78 7d 0a 25 | 3c 2f 64 74 78 3e 0a 25 |e.dtx}.%|</dtx>.%|
|00000590| 3c 73 63 72 74 69 6d 65 | 7c 73 63 72 64 61 74 65 |<scrtime||scrdate|
|000005a0| 3e 5c 4e 65 65 64 73 54 | 65 58 46 6f 72 6d 61 74 |>\NeedsT|eXFormat|
|000005b0| 7b 4c 61 54 65 58 32 65 | 7d 5b 31 39 39 34 2f 30 |{LaTeX2e|}[1994/0|
|000005c0| 36 2f 30 31 5d 0a 25 3c | 64 72 69 76 65 72 3e 20 |6/01].%<|driver> |
|000005d0| 20 20 5c 50 72 6f 76 69 | 64 65 73 46 69 6c 65 7b | \Provi|desFile{|
|000005e0| 73 63 72 74 69 6d 65 2e | 64 72 76 7d 0a 25 3c 73 |scrtime.|drv}.%<s|
|000005f0| 63 72 74 69 6d 65 3e 5c | 50 72 6f 76 69 64 65 73 |crtime>\|Provides|
|00000600| 50 61 63 6b 61 67 65 7b | 73 63 72 74 69 6d 65 7d |Package{|scrtime}|
|00000610| 0a 25 3c 73 63 72 64 61 | 74 65 3e 5c 50 72 6f 76 |.%<scrda|te>\Prov|
|00000620| 69 64 65 73 50 61 63 6b | 61 67 65 7b 73 63 72 64 |idesPack|age{scrd|
|00000630| 61 74 65 7d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ate}. | |
|00000640| 20 20 20 20 20 5b 31 39 | 39 34 2f 31 32 2f 33 31 | [19|94/12/31|
|00000650| 20 76 31 2e 30 61 20 4c | 61 54 65 58 32 65 20 4b | v1.0a L|aTeX2e K|
|00000660| 4f 4d 41 0a 25 3c 73 63 | 72 74 69 6d 65 7c 73 63 |OMA.%<sc|rtime|sc|
|00000670| 72 64 61 74 65 3e 20 20 | 20 20 20 20 20 20 20 20 |rdate> | |
|00000680| 20 20 20 20 20 20 20 70 | 61 63 6b 61 67 65 5d 0a | p|ackage].|
|00000690| 25 3c 2a 64 72 69 76 65 | 72 3e 0a 20 20 20 20 20 |%<*drive|r>. |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 72 69 76 | | driv|
|000006b0| 65 72 5d 0a 5c 64 6f 63 | 75 6d 65 6e 74 63 6c 61 |er].\doc|umentcla|
|000006c0| 73 73 7b 6c 74 78 64 6f | 63 7d 0a 5c 75 73 65 70 |ss{ltxdo|c}.\usep|
|000006d0| 61 63 6b 61 67 65 5b 61 | 34 70 61 70 65 72 5d 7b |ackage[a|4paper]{|
|000006e0| 74 79 70 65 61 72 65 61 | 7d 0a 5c 62 65 67 69 6e |typearea|}.\begin|
|000006f0| 7b 64 6f 63 75 6d 65 6e | 74 7d 0a 20 5c 44 6f 63 |{documen|t}. \Doc|
|00000700| 49 6e 70 75 74 7b 73 63 | 72 74 69 6d 65 2e 64 74 |Input{sc|rtime.dt|
|00000710| 78 7d 0a 5c 65 6e 64 7b | 64 6f 63 75 6d 65 6e 74 |x}.\end{|document|
|00000720| 7d 0a 25 3c 2f 64 72 69 | 76 65 72 3e 0a 25 20 5c |}.%</dri|ver>.% \|
|00000730| 66 69 0a 25 0a 25 20 5c | 43 68 65 63 6b 53 75 6d |fi.%.% \|CheckSum|
|00000740| 7b 32 34 39 7d 0a 25 20 | 5c 47 65 74 46 69 6c 65 |{249}.% |\GetFile|
|00000750| 49 6e 66 6f 7b 73 63 72 | 74 69 6d 65 2e 64 74 78 |Info{scr|time.dtx|
|00000760| 7d 0a 25 20 5c 74 69 74 | 6c 65 7b 54 68 65 20 5c |}.% \tit|le{The \|
|00000770| 74 65 78 74 73 66 7b 4b | 4f 4d 41 7d 2d 74 69 6d |textsf{K|OMA}-tim|
|00000780| 65 64 61 74 65 2d 62 75 | 6e 64 6c 65 5c 74 68 61 |edate-bu|ndle\tha|
|00000790| 6e 6b 73 7b 54 68 69 73 | 20 66 69 6c 65 20 68 61 |nks{This| file ha|
|000007a0| 73 0a 25 20 20 20 20 20 | 20 20 20 76 65 72 73 69 |s.% | versi|
|000007b0| 6f 6e 20 6e 75 6d 62 65 | 72 20 5c 66 69 6c 65 76 |on numbe|r \filev|
|000007c0| 65 72 73 69 6f 6e 2c 20 | 6c 61 73 74 20 72 65 76 |ersion, |last rev|
|000007d0| 69 73 65 64 20 5c 66 69 | 6c 65 64 61 74 65 2e 7d |ised \fi|ledate.}|
|000007e0| 7d 0a 25 20 5c 61 75 74 | 68 6f 72 7b 4d 61 72 6b |}.% \aut|hor{Mark|
|000007f0| 75 73 20 4b 6f 68 6d 7d | 0a 25 20 5c 64 61 74 65 |us Kohm}|.% \date|
|00000800| 7b 5c 66 69 6c 65 64 61 | 74 65 7d 0a 25 20 5c 6d |{\fileda|te}.% \m|
|00000810| 61 6b 65 74 69 74 6c 65 | 0a 25 0a 25 20 5c 64 65 |aketitle|.%.% \de|
|00000820| 66 5c 6f 61 72 67 23 31 | 7b 7b 5c 74 74 66 61 6d |f\oarg#1|{{\ttfam|
|00000830| 69 6c 79 5b 7d 7b 5c 65 | 6d 23 31 5c 2f 7d 7b 5c |ily[}{\e|m#1\/}{\|
|00000840| 74 74 66 61 6d 69 6c 79 | 5d 7d 7d 0a 25 20 5c 64 |ttfamily|]}}.% \d|
|00000850| 65 66 5c 61 72 67 23 31 | 7b 7b 5c 74 74 66 61 6d |ef\arg#1|{{\ttfam|
|00000860| 69 6c 79 5c 63 68 61 72 | 60 5c 7b 7d 7b 5c 65 6d |ily\char|`\{}{\em|
|00000870| 23 31 5c 2f 7d 7b 5c 74 | 74 66 61 6d 69 6c 79 5c |#1\/}{\t|tfamily\|
|00000880| 63 68 61 72 60 5c 7d 7d | 7d 0a 25 20 5c 64 65 66 |char`\}}|}.% \def|
|00000890| 5c 73 74 61 72 7b 7b 5c | 74 74 66 61 6d 69 6c 79 |\star{{\|ttfamily|
|000008a0| 2a 7d 7d 0a 25 20 5c 6d | 61 6b 65 61 74 6c 65 74 |*}}.% \m|akeatlet|
|000008b0| 74 65 72 0a 25 20 5c 64 | 65 66 5c 44 65 73 63 72 |ter.% \d|ef\Descr|
|000008c0| 69 62 65 40 4d 61 63 72 | 6f 23 31 7b 5c 65 6e 64 |ibe@Macr|o#1{\end|
|000008d0| 67 72 6f 75 70 0a 25 20 | 20 20 20 20 20 20 20 20 |group.% | |
|000008e0| 20 20 20 20 20 5c 73 65 | 74 62 6f 78 30 3d 5c 6c | \se|tbox0=\l|
|000008f0| 61 73 74 62 6f 78 5c 6c | 6c 61 70 7b 5c 50 72 69 |astbox\l|lap{\Pri|
|00000900| 6e 74 44 65 73 63 72 69 | 62 65 4d 61 63 72 6f 7b |ntDescri|beMacro{|
|00000910| 23 31 7d 7d 7d 25 0a 25 | 20 5c 64 65 66 5c 44 65 |#1}}}%.%| \def\De|
|00000920| 73 63 72 69 62 65 40 45 | 6e 76 23 31 7b 5c 65 6e |scribe@E|nv#1{\en|
|00000930| 64 67 72 6f 75 70 0a 25 | 20 20 20 20 20 20 20 20 |dgroup.%| |
|00000940| 20 20 20 20 20 20 5c 73 | 65 74 62 6f 78 30 3d 5c | \s|etbox0=\|
|00000950| 6c 61 73 74 62 6f 78 5c | 6c 6c 61 70 7b 5c 50 72 |lastbox\|llap{\Pr|
|00000960| 69 6e 74 44 65 73 63 72 | 69 62 65 45 6e 76 7b 23 |intDescr|ibeEnv{#|
|00000970| 31 7d 7d 7d 25 0a 25 20 | 5c 6d 61 6b 65 61 74 6f |1}}}%.% |\makeato|
|00000980| 74 68 65 72 0a 25 20 5c | 6d 61 72 67 69 6e 70 61 |ther.% \|marginpa|
|00000990| 72 73 65 70 30 70 74 0a | 25 0a 25 20 5c 62 65 67 |rsep0pt.|%.% \beg|
|000009a0| 69 6e 7b 61 62 73 74 72 | 61 63 74 7d 0a 25 20 54 |in{abstr|act}.% T|
|000009b0| 68 69 73 20 62 75 6e 64 | 6c 65 20 69 6e 63 6c 75 |his bund|le inclu|
|000009c0| 64 65 73 20 61 20 70 61 | 63 6b 61 67 65 20 5c 74 |des a pa|ckage \t|
|000009d0| 65 78 74 74 74 7b 73 63 | 72 74 69 6d 65 7d 20 64 |exttt{sc|rtime} d|
|000009e0| 65 66 69 6e 69 6e 67 20 | 73 6f 6d 65 0a 25 20 6d |efining |some.% m|
|000009f0| 61 63 72 6f 73 20 74 6f | 20 68 61 6e 64 6c 65 20 |acros to| handle |
|00000a00| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 2d 74 69 6d 65 |compilat|ion-time|
|00000a10| 2e 0a 25 20 49 74 27 73 | 20 61 20 76 65 72 79 20 |..% It's| a very |
|00000a20| 73 69 6d 70 6c 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |simple i|mplement|
|00000a30| 61 74 69 6f 6e 20 73 69 | 6d 69 6c 61 72 20 74 6f |ation si|milar to|
|00000a40| 20 5c 74 65 78 74 74 74 | 7b 74 69 6d 65 2e 73 74 | \texttt|{time.st|
|00000a50| 79 7d 2e 0a 25 20 49 27 | 76 65 20 74 72 69 65 64 |y}..% I'|ve tried|
|00000a60| 20 74 6f 20 75 73 65 20 | 6e 6f 20 61 64 64 69 74 | to use |no addit|
|00000a70| 69 6f 6e 61 6c 20 72 65 | 67 69 73 74 65 72 2e 0a |ional re|gister..|
|00000a80| 25 0a 25 20 54 68 65 20 | 73 65 63 6f 6e 64 20 70 |%.% The |second p|
|00000a90| 61 63 6b 61 67 65 20 5c | 74 65 78 74 74 74 7b 73 |ackage \|texttt{s|
|00000aa0| 63 72 64 61 74 65 7d 20 | 64 65 66 69 6e 65 73 20 |crdate} |defines |
|00000ab0| 73 6f 6d 65 20 6d 61 63 | 72 6f 73 20 74 6f 0a 25 |some mac|ros to.%|
|00000ac0| 20 68 61 6e 64 6c 65 20 | 74 68 65 20 6e 61 6d 65 | handle |the name|
|00000ad0| 20 6f 66 20 74 68 65 20 | 64 61 79 21 0a 25 20 5c | of the |day!.% \|
|00000ae0| 65 6e 64 7b 61 62 73 74 | 72 61 63 74 7d 0a 25 0a |end{abst|ract}.%.|
|00000af0| 25 20 5c 74 61 62 6c 65 | 6f 66 63 6f 6e 74 65 6e |% \table|ofconten|
|00000b00| 74 73 0a 25 0a 25 20 5c | 73 65 63 74 69 6f 6e 7b |ts.%.% \|section{|
|00000b10| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 7d 0a 25 20 |Introduc|tion}.% |
|00000b20| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 5c 74 65 78 |\subsect|ion{\tex|
|00000b30| 74 74 74 7b 73 63 72 74 | 69 6d 65 7d 2d 70 61 63 |ttt{scrt|ime}-pac|
|00000b40| 6b 61 67 65 7d 0a 25 20 | 5c 44 65 73 63 72 69 62 |kage}.% |\Describ|
|00000b50| 65 4d 61 63 72 6f 0a 25 | 20 5c 74 6f 64 61 79 5c |eMacro.%| \today\|
|00000b60| 5c 0a 25 20 5c 44 65 73 | 63 72 69 62 65 4d 61 63 |\.% \Des|cribeMac|
|00000b70| 72 6f 0a 25 20 5c 64 61 | 74 65 5c 61 72 67 7b 74 |ro.% \da|te\arg{t|
|00000b80| 6f 64 61 79 27 73 2d 76 | 61 6c 75 65 7d 5c 5c 0a |oday's-v|alue}\\.|
|00000b90| 25 20 5c 44 65 73 63 72 | 69 62 65 4d 61 63 72 6f |% \Descr|ibeMacro|
|00000ba0| 0a 25 20 5c 74 68 69 73 | 74 69 6d 65 5c 6f 61 72 |.% \this|time\oar|
|00000bb0| 67 7b 68 6f 75 72 73 65 | 70 61 72 61 74 6f 72 7d |g{hourse|parator}|
|00000bc0| 5c 5c 0a 25 20 5c 44 65 | 73 63 72 69 62 65 4d 61 |\\.% \De|scribeMa|
|00000bd0| 63 72 6f 0a 25 20 5c 73 | 65 74 74 69 6d 65 5c 61 |cro.% \s|ettime\a|
|00000be0| 72 67 7b 74 68 69 73 74 | 69 6d 65 27 73 2d 76 61 |rg{thist|ime's-va|
|00000bf0| 6c 75 65 7d 5c 5c 0a 25 | 20 41 74 20 5c 4c 61 54 |lue}\\.%| At \LaT|
|00000c00| 65 58 5c 20 74 68 65 72 | 65 27 73 20 61 20 6d 61 |eX\ ther|e's a ma|
|00000c10| 63 72 6f 20 7c 5c 74 6f | 64 61 79 7c 20 74 6f 20 |cro |\to|day| to |
|00000c20| 67 65 74 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 2d |get comp|ilation-|
|00000c30| 64 61 74 65 2e 20 54 68 | 65 72 65 27 73 0a 25 20 |date. Th|ere's.% |
|00000c40| 61 20 6d 61 63 72 6f 20 | 7c 5c 64 61 74 65 7c 20 |a macro ||\date| |
|00000c50| 74 6f 20 73 65 74 20 74 | 68 65 20 76 61 6c 75 65 |to set t|he value|
|00000c60| 20 6f 66 20 7c 5c 74 6f | 64 61 79 7c 2c 20 74 6f | of |\to|day|, to|
|00000c70| 6f 2e 20 42 75 74 20 74 | 6f 20 68 61 6e 64 6c 65 |o. But t|o handle|
|00000c80| 0a 25 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 2d 74 |.% compi|lation-t|
|00000c90| 69 6d 65 20 74 68 65 72 | 65 20 69 73 74 20 6f 6e |ime ther|e ist on|
|00000ca0| 6c 79 20 61 20 6d 61 63 | 72 6f 20 7c 5c 74 69 6d |ly a mac|ro |\tim|
|00000cb0| 65 7c 20 77 68 69 63 68 | 20 73 68 6f 77 73 20 74 |e| which| shows t|
|00000cc0| 68 65 0a 25 20 67 6f 6e | 65 20 6d 69 6e 75 74 65 |he.% gon|e minute|
|00000cd0| 73 20 6f 66 20 74 68 65 | 20 64 61 79 2e 0a 25 0a |s of the| day..%.|
|00000ce0| 25 20 57 69 74 68 20 74 | 68 65 20 6d 61 63 72 6f |% With t|he macro|
|00000cf0| 20 7c 5c 74 68 69 73 74 | 69 6d 65 7c 20 79 6f 75 | |\thist|ime| you|
|00000d00| 20 67 65 74 20 74 68 65 | 20 61 63 74 75 61 6c 20 | get the| actual |
|00000d10| 74 69 6d 65 2e 20 54 68 | 65 20 6f 70 74 69 6f 6e |time. Th|e option|
|00000d20| 61 6c 0a 25 20 61 72 67 | 75 6d 65 6e 74 20 5c 6f |al.% arg|ument \o|
|00000d30| 61 72 67 7b 68 6f 75 72 | 73 65 70 61 72 61 74 6f |arg{hour|separato|
|00000d40| 72 7d 20 69 73 20 75 73 | 65 64 20 74 6f 20 73 65 |r} is us|ed to se|
|00000d50| 70 61 72 61 74 65 20 68 | 6f 75 72 73 20 61 6e 64 |parate h|ours and|
|00000d60| 20 6d 69 6e 75 74 65 73 | 2e 0a 25 20 44 65 66 61 | minutes|..% Defa|
|00000d70| 75 6c 74 2d 76 61 6c 75 | 65 20 69 73 74 20 60 60 |ult-valu|e ist ``|
|00000d80| 7c 3a 7c 27 27 2e 0a 25 | 0a 25 20 57 69 74 68 20 ||:|''..%|.% With |
|00000d90| 74 68 65 20 6d 61 63 72 | 6f 20 7c 5c 73 65 74 74 |the macr|o |\sett|
|00000da0| 69 6d 65 7c 20 79 6f 75 | 20 6d 61 79 20 73 65 74 |ime| you| may set|
|00000db0| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 7c 5c | the val|ue of |\|
|00000dc0| 74 68 69 73 74 69 6d 65 | 7c 2e 20 41 66 74 65 72 |thistime||. After|
|00000dd0| 0a 25 20 74 68 69 73 20 | 74 68 65 20 6f 70 74 69 |.% this |the opti|
|00000de0| 6f 6e 61 6c 20 61 72 67 | 75 6d 65 6e 74 20 6f 66 |onal arg|ument of|
|00000df0| 20 7c 5c 74 68 69 73 74 | 69 6d 65 7c 20 77 69 6c | |\thist|ime| wil|
|00000e00| 6c 20 62 65 20 69 67 6e | 6f 72 65 64 2e 0a 25 0a |l be ign|ored..%.|
|00000e10| 25 0a 25 20 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |%.% \sub|section{|
|00000e20| 5c 74 65 78 74 74 74 7b | 73 63 72 64 61 74 65 7d |\texttt{|scrdate}|
|00000e30| 2d 70 61 63 6b 61 67 65 | 7d 0a 25 0a 25 20 41 74 |-package|}.%.% At|
|00000e40| 20 5c 4c 61 54 65 58 5c | 20 74 68 65 72 65 20 61 | \LaTeX\| there a|
|00000e50| 72 65 20 6d 61 63 72 6f | 73 20 74 6f 20 67 65 74 |re macro|s to get|
|00000e60| 20 74 68 65 20 61 63 74 | 75 61 6c 20 64 61 79 20 | the act|ual day |
|00000e70| 6f 72 20 6d 6f 6e 74 68 | 20 6f 72 20 79 65 61 72 |or month| or year|
|00000e80| 2e 20 55 73 69 6e 67 0a | 25 20 7c 5c 74 6f 64 61 |. Using.|% |\toda|
|00000e90| 79 7c 20 79 6f 75 20 65 | 76 65 6e 20 6d 61 79 20 |y| you e|ven may |
|00000ea0| 67 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |get the |name of |
|00000eb0| 74 68 65 20 6d 6f 6e 74 | 68 2c 20 62 75 74 20 79 |the mont|h, but y|
|00000ec0| 6f 75 20 77 69 6c 6c 20 | 6e 65 76 65 72 20 67 65 |ou will |never ge|
|00000ed0| 74 20 74 68 65 0a 25 20 | 6e 61 6d 65 20 6f 66 20 |t the.% |name of |
|00000ee0| 74 68 65 20 64 61 79 2e | 0a 25 0a 25 20 54 68 69 |the day.|.%.% Thi|
|00000ef0| 73 20 70 61 63 6b 61 67 | 65 20 64 65 66 69 6e 65 |s packag|e define|
|00000f00| 73 20 73 6f 6d 65 20 6d | 61 63 72 6f 73 20 74 6f |s some m|acros to|
|00000f10| 20 68 61 6e 64 6c 65 20 | 74 68 65 20 6e 61 6d 65 | handle |the name|
|00000f20| 20 6f 66 20 74 68 65 20 | 64 61 79 2e 0a 25 0a 25 | of the |day..%.%|
|00000f30| 20 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 | \begin{|descript|
|00000f40| 69 6f 6e 7d 0a 25 20 5c | 69 74 65 6d 5b 49 6d 70 |ion}.% \|item[Imp|
|00000f50| 6f 72 74 61 6e 74 3a 5d | 20 49 66 20 79 6f 75 20 |ortant:]| If you |
|00000f60| 75 73 65 20 6c 61 6e 67 | 75 61 67 65 2d 70 61 63 |use lang|uage-pac|
|00000f70| 6b 61 67 65 73 20 6c 69 | 6b 65 20 5c 74 65 78 74 |kages li|ke \text|
|00000f80| 74 74 7b 67 65 72 6d 61 | 6e 7d 20 6f 72 0a 25 20 |tt{germa|n} or.% |
|00000f90| 5c 74 65 78 74 74 74 7b | 62 61 62 65 6c 7d 2c 20 |\texttt{|babel}, |
|00000fa0| 74 68 65 73 65 20 5c 65 | 6d 70 68 7b 6d 75 73 74 |these \e|mph{must|
|00000fb0| 7d 20 62 65 20 6c 6f 61 | 64 65 64 20 5c 65 6d 70 |} be loa|ded \emp|
|00000fc0| 68 7b 61 66 74 65 72 7d | 0a 25 20 5c 74 65 78 74 |h{after}|.% \text|
|00000fd0| 74 74 7b 73 63 72 64 61 | 74 65 7d 2d 70 61 63 6b |tt{scrda|te}-pack|
|00000fe0| 61 67 65 2e 20 4f 74 68 | 65 72 77 69 73 65 20 74 |age. Oth|erwise t|
|00000ff0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 64 |he name |of the d|
|00001000| 61 79 27 6c 6c 20 62 65 | 20 77 72 6f 6e 67 21 0a |ay'll be| wrong!.|
|00001010| 25 20 5c 65 6e 64 7b 64 | 65 73 63 72 69 70 74 69 |% \end{d|escripti|
|00001020| 6f 6e 7d 0a 25 0a 25 20 | 5c 6e 6f 69 6e 64 65 6e |on}.%.% |\noinden|
|00001030| 74 5c 74 65 78 74 74 74 | 7b 73 63 72 64 61 74 65 |t\texttt|{scrdate|
|00001040| 7d 20 6b 6e 6f 77 73 20 | 66 6f 75 72 20 6c 61 6e |} knows |four lan|
|00001050| 67 75 61 67 65 73 3a 0a | 25 20 5c 62 65 67 69 6e |guages:.|% \begin|
|00001060| 7b 69 74 65 6d 69 7a 65 | 7d 0a 25 20 5c 69 74 65 |{itemize|}.% \ite|
|00001070| 6d 20 65 6e 67 6c 69 73 | 68 0a 25 20 5c 69 74 65 |m englis|h.% \ite|
|00001080| 6d 20 55 53 65 6e 67 6c | 69 73 68 0a 25 20 5c 69 |m USengl|ish.% \i|
|00001090| 74 65 6d 20 67 65 72 6d | 61 6e 0a 25 20 5c 69 74 |tem germ|an.% \it|
|000010a0| 65 6d 20 66 72 65 6e 63 | 68 0a 25 20 5c 65 6e 64 |em frenc|h.% \end|
|000010b0| 7b 69 74 65 6d 69 7a 65 | 7d 0a 25 0a 25 20 59 6f |{itemize|}.%.% Yo|
|000010c0| 75 20 6d 61 79 20 61 64 | 64 20 61 64 64 69 74 69 |u may ad|d additi|
|000010d0| 6f 6e 61 6c 20 6c 61 6e | 67 75 61 67 65 73 20 75 |onal lan|guages u|
|000010e0| 73 69 6e 67 20 74 68 65 | 20 63 6f 6e 66 69 67 75 |sing the| configu|
|000010f0| 72 61 74 69 6f 6e 66 69 | 6c 65 0a 25 20 5c 74 65 |rationfi|le.% \te|
|00001100| 78 74 74 74 7b 73 63 72 | 64 61 74 65 2e 63 66 67 |xttt{scr|date.cfg|
|00001110| 7d 2e 20 54 68 65 72 65 | 20 79 6f 75 20 68 61 76 |}. There| you hav|
|00001120| 65 20 74 6f 20 64 65 66 | 69 6e 65 20 61 20 6d 61 |e to def|ine a ma|
|00001130| 63 72 6f 0a 25 20 7c 5c | 64 61 79 6e 61 6d 65 40 |cro.% |\|dayname@|
|00001140| 7c 5c 65 6d 70 68 7b 6c | 61 6e 67 75 61 67 65 7d ||\emph{l|anguage}|
|00001150| 2e 20 54 68 69 73 20 6d | 61 63 72 6f 20 68 61 73 |. This m|acro has|
|00001160| 20 74 6f 20 62 65 20 73 | 6f 6d 65 74 68 69 6e 67 | to be s|omething|
|00001170| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0a 25 20 5c 62 | like th|is:.% \b|
|00001180| 65 67 69 6e 7b 66 6c 75 | 73 68 6c 65 66 74 7d 5c |egin{flu|shleft}\|
|00001190| 6e 6f 69 6e 64 65 6e 74 | 25 0a 25 20 7c 5c 6e 65 |noindent|%.% |\ne|
|000011a0| 77 63 6f 6d 6d 61 6e 64 | 5c 64 61 79 6e 61 6d 65 |wcommand|\dayname|
|000011b0| 40 7c 5c 65 6d 70 68 7b | 6c 61 6e 67 75 61 67 65 |@|\emph{|language|
|000011c0| 7d 7c 5b 31 5d 7b 25 7c | 5c 5c 0a 25 20 7c 20 5c |}|[1]{%||\\.% | \|
|000011d0| 62 65 67 69 6e 67 72 6f | 75 70 25 7c 5c 5c 0a 25 |begingro|up%|\\.%|
|000011e0| 20 7c 20 20 5c 40 74 65 | 6d 70 63 6e 74 61 20 23 | | \@te|mpcnta #|
|000011f0| 31 25 7c 5c 5c 0a 25 20 | 7c 20 20 5c 69 66 63 61 |1%|\\.% || \ifca|
|00001200| 73 65 5c 40 74 65 6d 70 | 63 6e 74 61 25 7c 5c 5c |se\@temp|cnta%|\\|
|00001210| 0a 25 20 7c 20 20 20 20 | 7c 5c 65 6d 70 68 7b 4d |.% | ||\emph{M|
|00001220| 6f 6e 64 61 79 7d 7c 5c | 6f 72 20 7c 5c 65 6d 70 |onday}|\|or |\emp|
|00001230| 68 7b 54 75 65 73 64 61 | 79 7d 7c 5c 6f 72 20 7c |h{Tuesda|y}|\or ||
|00001240| 5c 65 6d 70 68 7b 57 65 | 64 6e 65 73 64 61 79 7d |\emph{We|dnesday}|
|00001250| 7c 5c 6f 72 25 7c 5c 5c | 0a 25 20 7c 20 20 20 20 ||\or%|\\|.% | |
|00001260| 7c 5c 65 6d 70 68 7b 54 | 68 75 72 73 64 61 79 7d ||\emph{T|hursday}|
|00001270| 7c 5c 6f 72 20 7c 5c 65 | 6d 70 68 7b 46 72 69 64 ||\or |\e|mph{Frid|
|00001280| 61 79 7d 7c 5c 6f 72 20 | 7c 5c 65 6d 70 68 7b 53 |ay}|\or ||\emph{S|
|00001290| 61 74 75 72 64 61 79 7d | 7c 5c 6f 72 25 7c 5c 5c |aturday}||\or%|\\|
|000012a0| 0a 25 20 7c 20 20 20 20 | 7c 5c 65 6d 70 68 7b 53 |.% | ||\emph{S|
|000012b0| 75 6e 64 61 79 7d 7c 5c | 66 69 5c 65 6e 64 67 72 |unday}|\|fi\endgr|
|000012c0| 6f 75 70 25 7c 5c 5c 0a | 25 20 7c 7d 7c 0a 25 20 |oup%|\\.|% |}|.% |
|000012d0| 5c 65 6e 64 7b 66 6c 75 | 73 68 6c 65 66 74 7d 5c |\end{flu|shleft}\|
|000012e0| 70 61 72 5c 6e 6f 69 6e | 64 65 6e 74 0a 25 20 41 |par\noin|dent.% A|
|000012f0| 6c 73 6f 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |lso you |have to |
|00001300| 72 65 64 65 66 69 6e 65 | 0a 25 20 7c 5c 64 61 74 |redefine|.% |\dat|
|00001310| 65 7c 5c 65 6d 70 68 7b | 6c 61 6e 67 75 61 67 65 |e|\emph{|language|
|00001320| 7d 20 6c 69 6b 65 20 74 | 68 69 73 3a 0a 25 20 5c |} like t|his:.% \|
|00001330| 62 65 67 69 6e 7b 66 6c | 75 73 68 6c 65 66 74 7d |begin{fl|ushleft}|
|00001340| 5c 6e 6f 69 6e 64 65 6e | 74 25 0a 25 20 5c 71 75 |\noinden|t%.% \qu|
|00001350| 61 64 7c 5c 6c 65 74 5c | 44 40 64 61 74 65 7c 5c |ad|\let\|D@date|\|
|00001360| 65 6d 70 68 7b 6c 61 6e | 67 75 61 67 65 7d 7c 3d |emph{lan|guage}|=|
|00001370| 5c 64 61 74 65 7c 5c 65 | 6d 70 68 7b 6c 61 6e 67 |\date|\e|mph{lang|
|00001380| 75 61 67 65 7d 5c 5c 0a | 25 20 5c 71 75 61 64 5c |uage}\\.|% \quad\|
|00001390| 71 75 61 64 7c 5c 64 65 | 66 5c 64 61 74 65 7c 5c |quad|\de|f\date|\|
|000013a0| 65 6d 70 68 7b 6c 61 6e | 67 75 61 67 65 7d 25 0a |emph{lan|guage}%.|
|000013b0| 25 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 7b 5c |% | |{\|
|000013c0| 6c 65 74 5c 40 64 61 79 | 6e 61 6d 65 3d 5c 64 61 |let\@day|name=\da|
|000013d0| 79 6e 61 6d 65 40 7c 5c | 65 6d 70 68 7b 6c 61 6e |yname@|\|emph{lan|
|000013e0| 67 75 61 67 65 7d 25 0a | 25 20 20 20 20 20 20 20 |guage}%.|% |
|000013f0| 20 20 20 20 20 20 20 7c | 5c 44 40 64 61 74 65 7c | ||\D@date||
|00001400| 5c 65 6d 70 68 7b 6c 61 | 6e 67 75 61 67 65 7d 7c |\emph{la|nguage}||
|00001410| 7d 25 7c 0a 25 20 5c 65 | 6e 64 7b 66 6c 75 73 68 |}%|.% \e|nd{flush|
|00001420| 6c 65 66 74 7d 5c 70 61 | 72 0a 25 0a 25 20 5c 44 |left}\pa|r.%.% \D|
|00001430| 65 73 63 72 69 62 65 4d | 61 63 72 6f 0a 25 20 5c |escribeM|acro.% \|
|00001440| 6e 65 77 64 61 79 6c 61 | 6e 67 75 61 67 65 5c 61 |newdayla|nguage\a|
|00001450| 72 67 7b 6c 61 6e 67 75 | 61 67 65 7d 5c 61 72 67 |rg{langu|age}\arg|
|00001460| 7b 4d 6f 6e 64 61 79 7d | 5c 61 72 67 7b 54 75 65 |{Monday}|\arg{Tue|
|00001470| 73 64 61 79 7d 5c 61 72 | 67 7b 57 65 64 6e 65 73 |sday}\ar|g{Wednes|
|00001480| 64 61 79 7d 25 0a 25 20 | 5c 61 72 67 7b 54 68 75 |day}%.% |\arg{Thu|
|00001490| 72 73 64 61 79 7d 5c 61 | 72 67 7b 46 72 69 64 61 |rsday}\a|rg{Frida|
|000014a0| 79 7d 5c 61 72 67 7b 53 | 61 74 75 72 64 61 79 7d |y}\arg{S|aturday}|
|000014b0| 5c 61 72 67 7b 53 75 6e | 64 61 79 7d 5c 5c 0a 25 |\arg{Sun|day}\\.%|
|000014c0| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 64 61 79 | defines| the day|
|000014d0| 6e 61 6d 65 73 20 6f 66 | 20 61 20 6c 61 6e 67 75 |names of| a langu|
|000014e0| 61 67 65 20 6c 69 6b 65 | 20 73 68 6f 77 6e 20 62 |age like| shown b|
|000014f0| 65 66 6f 72 65 2e 0a 25 | 0a 25 20 5c 44 65 73 63 |efore..%|.% \Desc|
|00001500| 72 69 62 65 4d 61 63 72 | 6f 0a 25 20 5c 74 6f 64 |ribeMacr|o.% \tod|
|00001510| 61 79 73 6e 61 6d 65 5c | 5c 0a 25 20 73 68 6f 77 |aysname\|\.% show|
|00001520| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00001530| 65 20 61 63 74 75 61 6c | 20 64 61 79 20 28 64 65 |e actual| day (de|
|00001540| 66 69 6e 65 64 20 62 79 | 20 7c 5c 79 65 61 72 7c |fined by| |\year||
|00001550| 2c 20 7c 5c 6d 6f 6e 74 | 68 7c 20 61 6e 64 0a 25 |, |\mont|h| and.%|
|00001560| 20 7c 5c 64 61 79 7c 20 | 6f 72 20 62 79 20 7c 5c | |\day| |or by |\|
|00001570| 64 61 79 6e 61 6d 65 7c | 29 2e 0a 25 0a 25 20 5c |dayname||)..%.% \|
|00001580| 44 65 73 63 72 69 62 65 | 4d 61 63 72 6f 0a 25 20 |Describe|Macro.% |
|00001590| 5c 64 61 79 6e 61 6d 65 | 5c 61 72 67 7b 4e 61 6d |\dayname|\arg{Nam|
|000015a0| 65 7d 5c 5c 0a 25 20 73 | 65 74 73 20 74 68 65 20 |e}\\.% s|ets the |
|000015b0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 64 61 79 20 |name of |the day |
|000015c0| 74 6f 20 5c 61 72 67 7b | 4e 61 6d 65 7d 2e 0a 25 |to \arg{|Name}..%|
|000015d0| 0a 25 0a 25 20 5c 53 74 | 6f 70 45 76 65 6e 74 75 |.%.% \St|opEventu|
|000015e0| 61 6c 6c 79 0a 25 0a 25 | 20 5c 73 65 63 74 69 6f |ally.%.%| \sectio|
|000015f0| 6e 7b 49 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |n{Implem|entation|
|00001600| 7d 0a 25 20 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |}.% \sub|section{|
|00001610| 54 69 6d 65 2d 6d 61 63 | 72 6f 73 7d 0a 25 0a 25 |Time-mac|ros}.%.%|
|00001620| 20 20 20 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f | \beg|in{macro|
|00001630| 63 6f 64 65 7d 0a 25 3c | 2a 73 63 72 74 69 6d 65 |code}.%<|*scrtime|
|00001640| 3e 0a 25 20 20 20 20 5c | 65 6e 64 7b 6d 61 63 72 |>.% \|end{macr|
|00001650| 6f 63 6f 64 65 7d 0a 25 | 0a 25 20 57 65 20 75 73 |ocode}.%|.% We us|
|00001660| 65 20 7c 5c 40 74 65 6d | 70 63 6e 74 61 7c 20 61 |e |\@tem|pcnta| a|
|00001670| 6e 64 20 7c 5c 40 74 65 | 6d 70 63 6e 74 62 7c 20 |nd |\@te|mpcntb| |
|00001680| 62 75 74 20 77 65 20 6b | 6e 6f 77 2c 20 74 68 61 |but we k|now, tha|
|00001690| 74 20 74 68 69 73 20 69 | 73 20 6e 6f 74 0a 25 20 |t this i|s not.% |
|000016a0| 61 20 76 65 72 79 20 67 | 6f 6f 64 20 69 64 65 61 |a very g|ood idea|
|000016b0| 2e 0a 25 0a 25 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..%.% \|begin{ma|
|000016c0| 63 72 6f 7d 7b 5c 74 68 | 69 73 74 69 6d 65 7d 0a |cro}{\th|istime}.|
|000016d0| 25 20 46 69 72 73 74 20 | 77 65 20 68 61 76 65 20 |% First |we have |
|000016e0| 74 6f 20 63 61 6c 63 75 | 6c 61 74 65 20 74 68 65 |to calcu|late the|
|000016f0| 20 68 6f 75 72 73 20 61 | 6e 64 20 6d 69 6e 75 74 | hours a|nd minut|
|00001700| 65 73 2e 20 7c 5c 40 74 | 65 6d 70 63 6e 74 61 7c |es. |\@t|empcnta||
|00001710| 20 61 72 65 20 74 68 65 | 0a 25 20 68 6f 75 72 73 | are the|.% hours|
|00001720| 20 61 6e 64 20 7c 5c 40 | 74 65 6d 70 63 6e 74 62 | and |\@|tempcntb|
|00001730| 7c 20 61 72 65 20 74 68 | 65 20 6d 69 6e 75 74 65 || are th|e minute|
|00001740| 73 2e 0a 25 20 20 20 20 | 5c 62 65 67 69 6e 7b 6d |s..% |\begin{m|
|00001750| 61 63 72 6f 63 6f 64 65 | 7d 0a 5c 64 65 66 5c 74 |acrocode|}.\def\t|
|00001760| 68 69 73 74 69 6d 65 7b | 5c 40 69 66 6e 65 78 74 |histime{|\@ifnext|
|00001770| 63 68 61 72 5b 7b 5c 40 | 74 68 69 73 74 69 6d 65 |char[{\@|thistime|
|00001780| 7d 7b 5c 40 74 68 69 73 | 74 69 6d 65 5b 3a 5d 7d |}{\@this|time[:]}|
|00001790| 7d 0a 5c 64 65 66 5c 40 | 74 68 69 73 74 69 6d 65 |}.\def\@|thistime|
|000017a0| 5b 23 31 5d 7b 25 0a 20 | 20 5c 62 65 67 69 6e 67 |[#1]{%. | \beging|
|000017b0| 72 6f 75 70 0a 20 20 20 | 20 5c 40 74 65 6d 70 63 |roup. | \@tempc|
|000017c0| 6e 74 61 5c 74 69 6d 65 | 5c 64 69 76 69 64 65 5c |nta\time|\divide\|
|000017d0| 40 74 65 6d 70 63 6e 74 | 61 36 30 5c 6d 75 6c 74 |@tempcnt|a60\mult|
|000017e0| 69 70 6c 79 5c 40 74 65 | 6d 70 63 6e 74 61 36 30 |iply\@te|mpcnta60|
|000017f0| 25 0a 20 20 20 20 5c 40 | 74 65 6d 70 63 6e 74 62 |%. \@|tempcntb|
|00001800| 5c 74 69 6d 65 5c 61 64 | 76 61 6e 63 65 5c 40 74 |\time\ad|vance\@t|
|00001810| 65 6d 70 63 6e 74 62 2d | 5c 40 74 65 6d 70 63 6e |empcntb-|\@tempcn|
|00001820| 74 62 25 0a 20 20 20 20 | 5c 64 69 76 69 64 65 5c |tb%. |\divide\|
|00001830| 40 74 65 6d 70 63 6e 74 | 61 36 30 25 0a 25 20 20 |@tempcnt|a60%.% |
|00001840| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00001850| 7d 0a 25 20 4b 6e 6f 77 | 20 77 65 20 68 61 76 65 |}.% Know| we have|
|00001860| 20 74 6f 20 63 6f 6d 70 | 6f 73 65 20 74 68 65 20 | to comp|ose the |
|00001870| 76 61 6c 75 65 2e 20 49 | 66 20 6d 69 6e 75 74 65 |value. I|f minute|
|00001880| 73 20 6c 65 73 73 20 74 | 68 61 6e 20 31 30 0a 25 |s less t|han 10.%|
|00001890| 20 74 68 65 72 65 20 68 | 61 73 20 74 6f 20 62 65 | there h|as to be|
|000018a0| 20 61 6e 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 30 | an addi|tional 0|
|000018b0| 2e 0a 25 20 20 20 20 5c | 62 65 67 69 6e 7b 6d 61 |..% \|begin{ma|
|000018c0| 63 72 6f 63 6f 64 65 7d | 0a 20 20 20 20 5c 74 68 |crocode}|. \th|
|000018d0| 65 5c 40 74 65 6d 70 63 | 6e 74 61 7b 23 31 7d 5c |e\@tempc|nta{#1}\|
|000018e0| 69 66 6e 75 6d 5c 40 74 | 65 6d 70 63 6e 74 62 3c |ifnum\@t|empcntb<|
|000018f0| 31 30 20 30 5c 66 69 5c | 74 68 65 5c 40 74 65 6d |10 0\fi\|the\@tem|
|00001900| 70 63 6e 74 62 25 0a 20 | 20 5c 65 6e 64 67 72 6f |pcntb%. | \endgro|
|00001910| 75 70 7d 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |up}.% | \end{ma|
|00001920| 63 72 6f 63 6f 64 65 7d | 0a 25 20 20 5c 65 6e 64 |crocode}|.% \end|
|00001930| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 20 5c 62 65 |{macro}.|%.% \be|
|00001940| 67 69 6e 7b 6d 61 63 72 | 6f 7d 7b 5c 73 65 74 74 |gin{macr|o}{\sett|
|00001950| 69 6d 65 7d 0a 25 20 57 | 65 20 73 69 6d 70 6c 79 |ime}.% W|e simply|
|00001960| 20 68 61 76 65 20 74 6f | 20 73 65 74 20 7c 5c 74 | have to| set |\t|
|00001970| 68 69 73 74 69 6d 65 7c | 2e 0a 5c 6e 65 77 63 6f |histime||..\newco|
|00001980| 6d 6d 61 6e 64 5c 73 65 | 74 74 69 6d 65 5b 31 5d |mmand\se|ttime[1]|
|00001990| 7b 5c 72 65 6e 65 77 63 | 6f 6d 6d 61 6e 64 5c 74 |{\renewc|ommand\t|
|000019a0| 68 69 73 74 69 6d 65 7b | 23 31 7d 7d 0a 25 20 20 |histime{|#1}}.% |
|000019b0| 5c 65 6e 64 7b 6d 61 63 | 72 6f 7d 0a 25 0a 25 0a |\end{mac|ro}.%.%.|
|000019c0| 25 20 54 68 61 74 27 73 | 20 69 74 3a 0a 25 20 20 |% That's| it:.% |
|000019d0| 20 20 5c 62 65 67 69 6e | 7b 6d 61 63 72 6f 63 6f | \begin|{macroco|
|000019e0| 64 65 7d 0a 25 3c 2f 73 | 63 72 74 69 6d 65 3e 0a |de}.%</s|crtime>.|
|000019f0| 25 20 20 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 63 |% \en|d{macroc|
|00001a00| 6f 64 65 7d 0a 25 0a 25 | 0a 25 20 5c 73 75 62 73 |ode}.%.%|.% \subs|
|00001a10| 65 63 74 69 6f 6e 7b 44 | 61 74 65 2d 6d 61 63 72 |ection{D|ate-macr|
|00001a20| 6f 73 7d 0a 25 0a 25 20 | 20 20 20 5c 62 65 67 69 |os}.%.% | \begi|
|00001a30| 6e 7b 6d 61 63 72 6f 63 | 6f 64 65 7d 0a 25 3c 2a |n{macroc|ode}.%<*|
|00001a40| 73 63 72 64 61 74 65 3e | 0a 25 20 20 20 20 5c 65 |scrdate>|.% \e|
|00001a50| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 0a |nd{macro|code}.%.|
|00001a60| 25 20 54 6f 20 68 61 6e | 64 6c 65 20 74 68 65 6d |% To han|dle them|
|00001a70| 2c 20 77 65 20 6e 65 65 | 64 20 63 6f 75 6e 74 65 |, we nee|d counte|
|00001a80| 72 73 2e 20 57 65 20 75 | 73 65 20 73 61 6d 65 20 |rs. We u|se same |
|00001a90| 61 73 20 69 6e 20 5c 74 | 65 78 74 74 74 7b 73 63 |as in \t|exttt{sc|
|00001aa0| 72 74 69 6d 65 7d 2e 0a | 25 0a 25 20 20 5c 62 65 |rtime}..|%.% \be|
|00001ab0| 67 69 6e 7b 6d 61 63 72 | 6f 7d 7b 5c 74 6f 64 61 |gin{macr|o}{\toda|
|00001ac0| 79 73 6e 61 6d 65 7d 0a | 25 20 54 68 69 73 20 69 |ysname}.|% This i|
|00001ad0| 73 20 6e 6f 74 20 73 6f | 20 65 61 73 79 2e 20 46 |s not so| easy. F|
|00001ae0| 69 72 73 74 20 77 65 20 | 68 61 76 65 20 74 6f 20 |irst we |have to |
|00001af0| 63 61 6c 63 75 6c 61 74 | 65 20 68 6f 77 20 6d 61 |calculat|e how ma|
|00001b00| 6e 79 20 64 61 79 73 20 | 74 68 65 79 20 61 72 65 |ny days |they are|
|00001b10| 0a 25 20 66 72 6f 6d 20 | 31 73 74 20 4a 61 6e 75 |.% from |1st Janu|
|00001b20| 61 72 79 20 31 39 38 30 | 2e 0a 25 20 20 20 20 5c |ary 1980|..% \|
|00001b30| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00001b40| 0a 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 5c 74 6f 64 |.\newcom|mand\tod|
|00001b50| 61 79 73 6e 61 6d 65 7b | 25 0a 20 20 5c 62 65 67 |aysname{|%. \beg|
|00001b60| 69 6e 67 72 6f 75 70 25 | 0a 20 20 5c 40 74 65 6d |ingroup%|. \@tem|
|00001b70| 70 63 6e 74 61 5c 79 65 | 61 72 5c 40 74 65 6d 70 |pcnta\ye|ar\@temp|
|00001b80| 63 6e 74 62 30 25 0a 20 | 20 5c 69 66 6e 75 6d 5c |cntb0%. | \ifnum\|
|00001b90| 40 74 65 6d 70 63 6e 74 | 61 3c 31 39 38 30 20 75 |@tempcnt|a<1980 u|
|00001ba0| 6e 6b 6e 6f 77 6e 5c 65 | 6c 73 65 25 0a 20 20 20 |nknown\e|lse%. |
|00001bb0| 20 5c 61 64 76 61 6e 63 | 65 5c 40 74 65 6d 70 63 | \advanc|e\@tempc|
|00001bc0| 6e 74 61 2d 31 39 38 30 | 25 0a 20 20 20 20 5c 40 |nta-1980|%. \@|
|00001bd0| 77 68 69 6c 65 6e 75 6d | 5c 40 74 65 6d 70 63 6e |whilenum|\@tempcn|
|00001be0| 74 61 3e 3d 34 5c 64 6f | 25 0a 20 20 20 20 7b 5c |ta>=4\do|%. {\|
|00001bf0| 61 64 76 61 6e 63 65 5c | 40 74 65 6d 70 63 6e 74 |advance\|@tempcnt|
|00001c00| 62 35 5c 61 64 76 61 6e | 63 65 5c 40 74 65 6d 70 |b5\advan|ce\@temp|
|00001c10| 63 6e 74 61 2d 34 7d 25 | 0a 20 20 20 20 5c 69 66 |cnta-4}%|. \if|
|00001c20| 6e 75 6d 5c 40 74 65 6d | 70 63 6e 74 61 3e 30 25 |num\@tem|pcnta>0%|
|00001c30| 0a 20 20 20 20 20 20 5c | 69 66 6e 75 6d 5c 6d 6f |. \|ifnum\mo|
|00001c40| 6e 74 68 3e 32 5c 61 64 | 76 61 6e 63 65 5c 40 74 |nth>2\ad|vance\@t|
|00001c50| 65 6d 70 63 6e 74 62 31 | 5c 66 69 25 0a 20 20 20 |empcntb1|\fi%. |
|00001c60| 20 5c 65 6c 73 65 25 0a | 20 20 20 20 20 20 5c 61 | \else%.| \a|
|00001c70| 64 76 61 6e 63 65 5c 40 | 74 65 6d 70 63 6e 74 62 |dvance\@|tempcntb|
|00001c80| 5c 40 74 65 6d 70 63 6e | 74 61 25 0a 20 20 20 20 |\@tempcn|ta%. |
|00001c90| 66 69 25 0a 20 20 20 20 | 5c 69 66 63 61 73 65 5c |fi%. |\ifcase\|
|00001ca0| 6d 6f 6e 74 68 5c 6f 72 | 5c 6f 72 5c 61 64 76 61 |month\or|\or\adva|
|00001cb0| 6e 63 65 5c 40 74 65 6d | 70 63 6e 74 62 33 25 20 |nce\@tem|pcntb3% |
|00001cc0| 20 4a 61 6e 20 3d 20 20 | 32 38 20 2b 20 33 0a 20 | Jan = |28 + 3. |
|00001cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ce0| 20 20 20 5c 6f 72 5c 61 | 64 76 61 6e 63 65 5c 40 | \or\a|dvance\@|
|00001cf0| 74 65 6d 70 63 6e 74 62 | 33 25 20 2b 46 65 62 20 |tempcntb|3% +Feb |
|00001d00| 3d 20 20 35 36 20 2b 20 | 33 0a 20 20 20 20 20 20 |= 56 + |3. |
|00001d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 6f | | \o|
|00001d20| 72 5c 61 64 76 61 6e 63 | 65 5c 40 74 65 6d 70 63 |r\advanc|e\@tempc|
|00001d30| 6e 74 62 36 25 20 2b 4d | 61 72 20 3d 20 20 38 34 |ntb6% +M|ar = 84|
|00001d40| 20 2b 20 36 0a 20 20 20 | 20 20 20 20 20 20 20 20 | + 6. | |
|00001d50| 20 20 20 20 20 20 20 20 | 20 5c 6f 72 5c 61 64 76 | | \or\adv|
|00001d60| 61 6e 63 65 5c 40 74 65 | 6d 70 63 6e 74 62 31 25 |ance\@te|mpcntb1%|
|00001d70| 20 2b 41 70 72 20 3d 20 | 31 31 39 20 2b 20 31 0a | +Apr = |119 + 1.|
|00001d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d90| 20 20 20 20 5c 6f 72 5c | 61 64 76 61 6e 63 65 5c | \or\|advance\|
|00001da0| 40 74 65 6d 70 63 6e 74 | 62 34 25 20 2b 4d 61 79 |@tempcnt|b4% +May|
|00001db0| 20 3d 20 31 34 37 20 2b | 20 34 0a 20 20 20 20 20 | = 147 +| 4. |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5c | | \|
|00001dd0| 6f 72 5c 61 64 76 61 6e | 63 65 5c 40 74 65 6d 70 |or\advan|ce\@temp|
|00001de0| 63 6e 74 62 36 25 20 2b | 4a 75 6e 20 3d 20 31 37 |cntb6% +|Jun = 17|
|00001df0| 35 20 2b 20 36 0a 20 20 | 20 20 20 20 20 20 20 20 |5 + 6. | |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 5c 6f 72 5c 61 64 | | \or\ad|
|00001e10| 76 61 6e 63 65 5c 40 74 | 65 6d 70 63 6e 74 62 32 |vance\@t|empcntb2|
|00001e20| 25 20 2b 4a 75 6c 20 3d | 20 32 31 30 20 2b 20 32 |% +Jul =| 210 + 2|
|00001e30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001e40| 20 20 20 20 20 5c 6f 72 | 5c 61 64 76 61 6e 63 65 | \or|\advance|
|00001e50| 5c 40 74 65 6d 70 63 6e | 74 62 35 25 20 2b 41 75 |\@tempcn|tb5% +Au|
|00001e60| 67 20 3d 20 32 33 38 20 | 2b 20 35 0a 20 20 20 20 |g = 238 |+ 5. |
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e80| 5c 6f 72 25 20 20 20 20 | 20 20 20 20 20 20 20 20 |\or% | |
|00001e90| 20 20 20 20 20 20 20 20 | 2b 53 65 70 20 3d 20 32 | |+Sep = 2|
|00001ea0| 37 33 20 2b 20 30 0a 20 | 20 20 20 20 20 20 20 20 |73 + 0. | |
|00001eb0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 6f 72 5c 61 | | \or\a|
|00001ec0| 64 76 61 6e 63 65 5c 40 | 74 65 6d 70 63 6e 74 62 |dvance\@|tempcntb|
|00001ed0| 33 25 20 2b 4f 63 74 20 | 3d 20 33 30 31 20 2b 20 |3% +Oct |= 301 + |
|00001ee0| 33 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |3. | |
|00001ef0| 20 20 20 20 20 20 5c 6f | 72 5c 61 64 76 61 6e 63 | \o|r\advanc|
|00001f00| 65 5c 40 74 65 6d 70 63 | 6e 74 62 35 25 20 2b 4e |e\@tempc|ntb5% +N|
|00001f10| 6f 76 20 3d 20 33 32 39 | 20 2b 20 35 0a 20 20 20 |ov = 329| + 5. |
|00001f20| 20 5c 66 69 25 0a 20 20 | 20 20 5c 61 64 76 61 6e | \fi%. | \advan|
|00001f30| 63 65 5c 40 74 65 6d 70 | 63 6e 74 62 5c 64 61 79 |ce\@temp|cntb\day|
|00001f40| 25 0a 20 20 20 20 5c 61 | 64 76 61 6e 63 65 5c 40 |%. \a|dvance\@|
|00001f50| 74 65 6d 70 63 6e 74 62 | 35 25 20 30 20 69 73 20 |tempcntb|5% 0 is |
|00001f60| 4d 6f 6e 64 61 79 21 0a | 20 20 20 20 5c 40 77 68 |Monday!.| \@wh|
|00001f70| 69 6c 65 6e 75 6d 5c 40 | 74 65 6d 70 63 6e 74 62 |ilenum\@|tempcntb|
|00001f80| 3e 3d 37 5c 64 6f 25 0a | 20 20 20 20 7b 5c 61 64 |>=7\do%.| {\ad|
|00001f90| 76 61 6e 63 65 5c 40 74 | 65 6d 70 63 6e 74 62 2d |vance\@t|empcntb-|
|00001fa0| 37 7d 25 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |7}%.% | \end{ma|
|00001fb0| 63 72 6f 63 6f 64 65 7d | 0a 25 20 4e 6f 77 20 77 |crocode}|.% Now w|
|00001fc0| 65 20 63 61 6e 20 73 61 | 79 20 77 68 69 63 68 20 |e can sa|y which |
|00001fd0| 64 61 79 20 69 74 20 69 | 73 2e 0a 25 20 20 20 20 |day it i|s..% |
|00001fe0| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 63 6f 64 65 |\begin{m|acrocode|
|00001ff0| 7d 0a 20 20 20 20 5c 40 | 64 61 79 6e 61 6d 65 7b |}. \@|dayname{|
|00002000| 5c 40 74 65 6d 70 63 6e | 74 62 7d 25 0a 20 20 5c |\@tempcn|tb}%. \|
|00002010| 66 69 5c 65 6e 64 67 72 | 6f 75 70 7d 0a 25 20 20 |fi\endgr|oup}.% |
|00002020| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 63 6f 64 65 | \end{m|acrocode|
|00002030| 7d 0a 25 20 20 5c 65 6e | 64 7b 6d 61 63 72 6f 7d |}.% \en|d{macro}|
|00002040| 0a 25 0a 25 20 20 5c 62 | 65 67 69 6e 7b 6d 61 63 |.%.% \b|egin{mac|
|00002050| 72 6f 7d 7b 5c 6e 61 6d | 65 64 61 79 7d 0a 25 20 |ro}{\nam|eday}.% |
|00002060| 57 65 20 73 69 6d 70 6c | 79 20 68 61 76 65 20 74 |We simpl|y have t|
|00002070| 6f 20 72 65 64 65 66 69 | 6e 65 20 7c 5c 74 6f 64 |o redefi|ne |\tod|
|00002080| 61 79 73 6e 61 6d 65 7c | 0a 25 20 20 20 20 5c 62 |aysname||.% \b|
|00002090| 65 67 69 6e 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |egin{mac|rocode}.|
|000020a0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 5c 6e 61 6d 65 |\newcomm|and\name|
|000020b0| 64 61 79 5b 31 5d 7b 5c | 72 65 6e 65 77 63 6f 6d |day[1]{\|renewcom|
|000020c0| 6d 61 6e 64 5c 74 6f 64 | 61 79 73 6e 61 6d 65 7b |mand\tod|aysname{|
|000020d0| 23 31 7d 7d 0a 25 20 20 | 20 20 5c 65 6e 64 7b 6d |#1}}.% | \end{m|
|000020e0| 61 63 72 6f 63 6f 64 65 | 7d 0a 25 20 20 5c 65 6e |acrocode|}.% \en|
|000020f0| 64 7b 6d 61 63 72 6f 7d | 0a 25 0a 25 20 20 5c 62 |d{macro}|.%.% \b|
|00002100| 65 67 69 6e 7b 6d 61 63 | 72 6f 7d 7b 5c 40 64 61 |egin{mac|ro}{\@da|
|00002110| 79 6e 61 6d 65 7d 0a 25 | 20 54 68 69 73 20 73 68 |yname}.%| This sh|
|00002120| 6f 75 6c 64 20 62 65 20 | 6e 61 6d 65 64 20 73 65 |ould be |named se|
|00002130| 6c 65 63 74 69 6e 67 20 | 74 68 65 20 6c 61 6e 67 |lecting |the lang|
|00002140| 75 61 67 65 2e 20 53 6f | 20 77 65 20 64 6f 20 73 |uage. So| we do s|
|00002150| 6f 6d 65 20 63 68 61 6e | 67 65 73 0a 25 20 61 74 |ome chan|ges.% at|
|00002160| 20 7c 5c 62 65 67 69 6e | 7b 64 6f 63 75 6d 65 6e | |\begin|{documen|
|00002170| 74 7d 7c 20 28 61 6e 64 | 20 68 6f 70 65 2c 20 7c |t}| (and| hope, ||
|00002180| 67 65 72 6d 61 6e 2e 73 | 74 79 7c 20 6f 72 20 6f |german.s|ty| or o|
|00002190| 74 68 65 72 20 77 69 6c | 6c 20 62 65 0a 25 20 6c |ther wil|l be.% l|
|000021a0| 6f 61 64 65 64 20 5c 65 | 6d 70 68 7b 61 66 74 65 |oaded \e|mph{afte|
|000021b0| 72 7d 20 7c 73 63 72 64 | 61 74 65 7c 29 2e 0a 25 |r} |scrd|ate|)..%|
|000021c0| 20 20 20 20 5c 62 65 67 | 69 6e 7b 6d 61 63 72 6f | \beg|in{macro|
|000021d0| 63 6f 64 65 7d 0a 5c 41 | 74 42 65 67 69 6e 44 6f |code}.\A|tBeginDo|
|000021e0| 63 75 6d 65 6e 74 7b 25 | 0a 20 20 5c 6c 65 74 5c |cument{%|. \let\|
|000021f0| 44 40 64 61 74 65 67 65 | 72 6d 61 6e 3d 5c 64 61 |D@datege|rman=\da|
|00002200| 74 65 67 65 72 6d 61 6e | 25 0a 20 20 20 20 5c 64 |tegerman|%. \d|
|00002210| 65 66 5c 64 61 74 65 67 | 65 72 6d 61 6e 7b 5c 6c |ef\dateg|erman{\l|
|00002220| 65 74 5c 40 64 61 79 6e | 61 6d 65 3d 5c 64 61 79 |et\@dayn|ame=\day|
|00002230| 6e 61 6d 65 40 67 65 72 | 6d 61 6e 5c 44 40 64 61 |name@ger|man\D@da|
|00002240| 74 65 67 65 72 6d 61 6e | 7d 25 0a 20 20 5c 6c 65 |tegerman|}%. \le|
|00002250| 74 5c 44 40 64 61 74 65 | 65 6e 67 6c 69 73 68 3d |t\D@date|english=|
|00002260| 5c 64 61 74 65 65 6e 67 | 6c 69 73 68 25 0a 20 20 |\dateeng|lish%. |
|00002270| 20 20 5c 64 65 66 5c 64 | 61 74 65 65 6e 67 6c 69 | \def\d|ateengli|
|00002280| 73 68 7b 5c 6c 65 74 5c | 40 64 61 79 6e 61 6d 65 |sh{\let\|@dayname|
|00002290| 3d 5c 64 61 79 6e 61 6d | 65 40 65 6e 67 6c 69 73 |=\daynam|e@englis|
|000022a0| 68 5c 44 40 64 61 74 65 | 65 6e 67 6c 69 73 68 7d |h\D@date|english}|
|000022b0| 25 0a 20 20 5c 6c 65 74 | 5c 44 40 64 61 74 65 55 |%. \let|\D@dateU|
|000022c0| 53 65 6e 67 6c 69 73 68 | 3d 5c 64 61 74 65 55 53 |Senglish|=\dateUS|
|000022d0| 65 6e 67 6c 69 73 68 25 | 0a 20 20 20 20 5c 64 65 |english%|. \de|
|000022e0| 66 5c 64 61 74 65 55 53 | 65 6e 67 6c 69 73 68 7b |f\dateUS|english{|
|000022f0| 5c 6c 65 74 5c 40 64 61 | 79 6e 61 6d 65 3d 5c 64 |\let\@da|yname=\d|
|00002300| 61 79 6e 61 6d 65 40 65 | 6e 67 6c 69 73 68 5c 44 |ayname@e|nglish\D|
|00002310| 40 64 61 74 65 55 53 65 | 6e 67 6c 69 73 68 7d 25 |@dateUSe|nglish}%|
|00002320| 0a 20 20 5c 6c 65 74 5c | 44 40 64 61 74 65 66 72 |. \let\|D@datefr|
|00002330| 65 6e 63 68 3d 5c 64 61 | 74 65 66 72 65 6e 63 68 |ench=\da|tefrench|
|00002340| 25 0a 20 20 20 20 5c 64 | 65 66 5c 64 61 74 65 66 |%. \d|ef\datef|
|00002350| 72 65 6e 63 68 7b 5c 6c | 65 74 5c 40 64 61 79 6e |rench{\l|et\@dayn|
|00002360| 61 6d 65 3d 5c 64 61 79 | 6e 61 6d 65 40 66 72 65 |ame=\day|name@fre|
|00002370| 6e 63 68 5c 44 40 64 61 | 74 65 66 72 65 6e 63 68 |nch\D@da|tefrench|
|00002380| 7d 0a 20 20 5c 69 66 63 | 61 73 65 5c 6c 61 6e 67 |}. \ifc|ase\lang|
|00002390| 75 61 67 65 0a 20 20 20 | 20 5c 64 61 74 65 55 53 |uage. | \dateUS|
|000023a0| 65 6e 67 6c 69 73 68 0a | 20 20 5c 6f 72 0a 20 20 |english.| \or. |
|000023b0| 20 20 5c 64 61 74 65 67 | 65 72 6d 61 6e 0a 20 20 | \dateg|erman. |
|000023c0| 5c 6f 72 0a 20 20 20 20 | 5c 64 61 74 65 66 72 65 |\or. |\datefre|
|000023d0| 6e 63 68 0a 20 20 5c 66 | 69 0a 7d 0a 25 20 20 20 |nch. \f|i.}.% |
|000023e0| 20 5c 65 6e 64 7b 6d 61 | 63 72 6f 63 6f 64 65 7d | \end{ma|crocode}|
|000023f0| 0a 25 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 7d 0a |.% \end|{macro}.|
|00002400| 25 0a 25 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |%.% \be|gin{macr|
|00002410| 6f 7d 7b 5c 64 61 79 6e | 61 6d 65 40 67 65 72 6d |o}{\dayn|ame@germ|
|00002420| 61 6e 7d 0a 25 20 41 6e | 64 20 68 65 72 65 20 61 |an}.% An|d here a|
|00002430| 72 65 20 74 68 65 20 67 | 65 72 6d 61 6e 20 64 61 |re the g|erman da|
|00002440| 79 6e 61 6d 65 73 2e 0a | 25 20 20 20 20 5c 62 65 |ynames..|% \be|
|00002450| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 5c |gin{macr|ocode}.\|
|00002460| 6e 65 77 63 6f 6d 6d 61 | 6e 64 5c 64 61 79 6e 61 |newcomma|nd\dayna|
|00002470| 6d 65 40 67 65 72 6d 61 | 6e 5b 31 5d 7b 25 0a 20 |me@germa|n[1]{%. |
|00002480| 20 5c 62 65 67 69 6e 67 | 72 6f 75 70 25 0a 20 20 | \beging|roup%. |
|00002490| 5c 40 74 65 6d 70 63 6e | 74 61 20 23 31 25 0a 20 |\@tempcn|ta #1%. |
|000024a0| 20 5c 69 66 63 61 73 65 | 5c 40 74 65 6d 70 63 6e | \ifcase|\@tempcn|
|000024b0| 74 61 25 0a 20 20 20 20 | 4d 6f 6e 74 61 67 5c 6f |ta%. |Montag\o|
|000024c0| 72 20 44 69 65 6e 73 74 | 61 67 5c 6f 72 20 4d 69 |r Dienst|ag\or Mi|
|000024d0| 74 74 77 6f 63 68 5c 6f | 72 20 44 6f 6e 6e 65 72 |ttwoch\o|r Donner|
|000024e0| 73 74 61 67 5c 6f 72 25 | 0a 20 20 20 20 46 72 65 |stag\or%|. Fre|
|000024f0| 69 74 61 67 5c 6f 72 20 | 53 61 6d 73 74 61 67 5c |itag\or |Samstag\|
|00002500| 6f 72 20 53 6f 6e 6e 74 | 61 67 5c 66 69 5c 65 6e |or Sonnt|ag\fi\en|
|00002510| 64 67 72 6f 75 70 25 0a | 7d 0a 25 20 20 20 20 5c |dgroup%.|}.% \|
|00002520| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00002530| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 7d 0a 25 0a | \end{m|acro}.%.|
|00002540| 25 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |% \begi|n{macro}|
|00002550| 7b 5c 64 61 79 6e 61 6d | 65 40 65 6e 67 6c 69 73 |{\daynam|e@englis|
|00002560| 68 7d 0a 25 20 41 6e 64 | 20 74 68 65 20 65 6e 67 |h}.% And| the eng|
|00002570| 6c 69 73 68 20 64 61 79 | 6e 61 6d 65 73 0a 25 20 |lish day|names.% |
|00002580| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|00002590| 6f 64 65 7d 0a 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |ode}.\ne|wcommand|
|000025a0| 5c 64 61 79 6e 61 6d 65 | 40 65 6e 67 6c 69 73 68 |\dayname|@english|
|000025b0| 5b 31 5d 7b 25 0a 20 20 | 5c 62 65 67 69 6e 67 72 |[1]{%. |\begingr|
|000025c0| 6f 75 70 25 0a 20 20 5c | 40 74 65 6d 70 63 6e 74 |oup%. \|@tempcnt|
|000025d0| 61 20 23 31 25 0a 20 20 | 5c 69 66 63 61 73 65 5c |a #1%. |\ifcase\|
|000025e0| 40 74 65 6d 70 63 6e 74 | 61 25 0a 20 20 20 20 4d |@tempcnt|a%. M|
|000025f0| 6f 6e 64 61 79 5c 6f 72 | 20 54 75 65 73 64 61 79 |onday\or| Tuesday|
|00002600| 5c 6f 72 20 57 65 64 6e | 65 73 64 61 79 5c 6f 72 |\or Wedn|esday\or|
|00002610| 20 54 68 75 72 73 64 61 | 79 5c 6f 72 25 0a 20 20 | Thursda|y\or%. |
|00002620| 20 20 46 72 69 64 61 79 | 5c 6f 72 20 53 61 74 75 | Friday|\or Satu|
|00002630| 72 64 61 79 5c 6f 72 20 | 53 75 6e 64 61 79 5c 66 |rday\or |Sunday\f|
|00002640| 69 5c 65 6e 64 67 72 6f | 75 70 25 0a 7d 0a 25 20 |i\endgro|up%.}.% |
|00002650| 20 20 20 5c 65 6e 64 7b | 6d 61 63 72 6f 63 6f 64 | \end{|macrocod|
|00002660| 65 7d 0a 25 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |e}.% \e|nd{macro|
|00002670| 7d 0a 25 0a 25 20 20 5c | 62 65 67 69 6e 7b 6d 61 |}.%.% \|begin{ma|
|00002680| 63 72 6f 7d 7b 5c 64 61 | 79 6e 61 6d 65 40 66 72 |cro}{\da|yname@fr|
|00002690| 65 6e 63 68 7d 0a 25 20 | 41 6e 64 20 74 68 65 20 |ench}.% |And the |
|000026a0| 66 72 65 6e 63 68 20 64 | 61 79 6e 61 6d 65 73 0a |french d|aynames.|
|000026b0| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|000026c0| 6f 63 6f 64 65 7d 0a 5c | 6e 65 77 63 6f 6d 6d 61 |ocode}.\|newcomma|
|000026d0| 6e 64 5c 64 61 79 6e 61 | 6d 65 40 66 72 65 6e 63 |nd\dayna|me@frenc|
|000026e0| 68 5b 31 5d 7b 25 0a 20 | 20 5c 62 65 67 69 6e 67 |h[1]{%. | \beging|
|000026f0| 72 6f 75 70 25 0a 20 20 | 5c 40 74 65 6d 70 63 6e |roup%. |\@tempcn|
|00002700| 74 61 20 23 31 25 0a 20 | 20 5c 69 66 63 61 73 65 |ta #1%. | \ifcase|
|00002710| 5c 40 74 65 6d 70 63 6e | 74 61 25 0a 20 20 20 20 |\@tempcn|ta%. |
|00002720| 4c 75 6e 64 69 5c 6f 72 | 20 4d 61 72 64 69 5c 6f |Lundi\or| Mardi\o|
|00002730| 72 20 4d 65 72 63 72 65 | 64 69 5c 6f 72 20 4a 65 |r Mercre|di\or Je|
|00002740| 75 64 69 5c 6f 72 25 0a | 20 20 20 20 56 65 6e 64 |udi\or%.| Vend|
|00002750| 72 65 64 69 5c 6f 72 20 | 53 61 6d 65 64 69 5c 6f |redi\or |Samedi\o|
|00002760| 72 20 44 69 6d 61 6e 63 | 68 65 5c 66 69 5c 65 6e |r Dimanc|he\fi\en|
|00002770| 64 67 72 6f 75 70 25 0a | 7d 0a 25 20 20 20 20 5c |dgroup%.|}.% \|
|00002780| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00002790| 20 20 5c 65 6e 64 7b 6d | 61 63 72 6f 7d 0a 25 0a | \end{m|acro}.%.|
|000027a0| 25 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 7d |% \begi|n{macro}|
|000027b0| 7b 5c 6e 65 77 64 61 79 | 6c 61 6e 67 75 61 67 65 |{\newday|language|
|000027c0| 7d 0a 25 20 57 65 20 6f | 6e 6c 79 20 68 61 76 65 |}.% We o|nly have|
|000027d0| 20 74 6f 20 64 65 66 69 | 6e 65 20 6c 69 6b 65 20 | to defi|ne like |
|000027e0| 62 65 66 6f 72 65 2e 0a | 25 20 20 20 20 5c 62 65 |before..|% \be|
|000027f0| 67 69 6e 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 5c |gin{macr|ocode}.\|
|00002800| 6e 65 77 63 6f 6d 6d 61 | 6e 64 5c 6e 65 77 64 61 |newcomma|nd\newda|
|00002810| 79 6c 61 6e 67 75 61 67 | 65 5b 38 5d 7b 25 0a 25 |ylanguag|e[8]{%.%|
|00002820| 20 20 20 20 5c 65 6e 64 | 7b 6d 61 63 72 6f 63 6f | \end|{macroco|
|00002830| 64 65 7d 0a 25 20 46 69 | 72 73 74 20 77 65 20 64 |de}.% Fi|rst we d|
|00002840| 65 66 69 6e 65 20 74 68 | 65 20 6e 65 77 20 6d 61 |efine th|e new ma|
|00002850| 63 72 6f 20 7c 5c 64 61 | 79 6e 61 6d 65 40 7c 5c |cro |\da|yname@|\|
|00002860| 65 6d 70 68 7b 6c 61 6e | 67 75 61 67 65 7d 3a 0a |emph{lan|guage}:.|
|00002870| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|00002880| 6f 63 6f 64 65 7d 0a 20 | 20 5c 65 78 70 61 6e 64 |ocode}. | \expand|
|00002890| 61 66 74 65 72 5c 64 65 | 66 5c 63 73 6e 61 6d 65 |after\de|f\csname|
|000028a0| 20 64 61 79 6e 61 6d 65 | 40 23 31 5c 65 6e 64 63 | dayname|@#1\endc|
|000028b0| 73 6e 61 6d 65 7b 25 0a | 20 20 20 20 5c 62 65 67 |sname{%.| \beg|
|000028c0| 69 6e 67 72 6f 75 70 25 | 0a 20 20 20 20 20 20 5c |ingroup%|. \|
|000028d0| 40 74 65 6d 70 63 6e 74 | 61 20 23 31 25 0a 20 20 |@tempcnt|a #1%. |
|000028e0| 20 20 20 20 5c 69 66 63 | 61 73 65 5c 40 74 65 6d | \ifc|ase\@tem|
|000028f0| 70 63 6e 74 61 25 0a 20 | 20 20 20 20 20 20 20 23 |pcnta%. | #|
|00002900| 32 5c 6f 72 20 23 33 5c | 6f 72 20 23 34 5c 6f 72 |2\or #3\|or #4\or|
|00002910| 20 23 35 5c 6f 72 20 23 | 36 5c 6f 72 20 23 37 5c | #5\or #|6\or #7\|
|00002920| 6f 72 20 23 38 5c 66 69 | 5c 65 6e 64 67 72 6f 75 |or #8\fi|\endgrou|
|00002930| 70 25 0a 20 20 7d 0a 25 | 20 20 20 20 5c 65 6e 64 |p%. }.%| \end|
|00002940| 7b 6d 61 63 72 6f 63 6f | 64 65 7d 0a 25 20 54 68 |{macroco|de}.% Th|
|00002950| 65 6e 20 77 65 20 64 65 | 66 69 6e 65 2c 20 77 68 |en we de|fine, wh|
|00002960| 61 74 20 74 6f 20 64 6f | 20 61 74 20 7c 5c 62 65 |at to do| at |\be|
|00002970| 67 69 6e 7b 64 6f 63 75 | 6d 65 6e 74 7d 7c 3a 0a |gin{docu|ment}|:.|
|00002980| 25 20 20 20 20 5c 62 65 | 67 69 6e 7b 6d 61 63 72 |% \be|gin{macr|
|00002990| 6f 63 6f 64 65 7d 0a 20 | 20 5c 41 74 42 65 67 69 |ocode}. | \AtBegi|
|000029a0| 6e 44 6f 63 75 6d 65 6e | 74 7b 0a 25 20 20 20 20 |nDocumen|t{.% |
|000029b0| 5c 65 6e 64 7b 6d 61 63 | 72 6f 63 6f 64 65 7d 0a |\end{mac|rocode}.|
|000029c0| 25 20 54 68 65 72 65 20 | 77 65 20 66 69 72 73 74 |% There |we first|
|000029d0| 20 73 61 76 65 20 7c 5c | 64 61 74 65 7c 5c 65 6d | save |\|date|\em|
|000029e0| 70 68 7b 6c 61 6e 67 75 | 61 67 65 7d 20 61 73 20 |ph{langu|age} as |
|000029f0| 7c 5c 44 40 64 61 74 65 | 7c 5c 65 6d 70 68 7b 6c ||\D@date||\emph{l|
|00002a00| 61 6e 67 75 61 67 65 7d | 3a 0a 25 20 20 20 20 5c |anguage}|:.% \|
|00002a10| 62 65 67 69 6e 7b 6d 61 | 63 72 6f 63 6f 64 65 7d |begin{ma|crocode}|
|00002a20| 0a 20 20 20 20 5c 65 78 | 70 61 6e 64 61 66 74 65 |. \ex|pandafte|
|00002a30| 72 5c 6c 65 74 5c 63 73 | 6e 61 6d 65 20 44 40 64 |r\let\cs|name D@d|
|00002a40| 61 74 65 23 31 5c 65 6e | 64 63 73 6e 61 6d 65 3d |ate#1\en|dcsname=|
|00002a50| 5c 63 73 6e 61 6d 65 20 | 64 61 74 65 23 31 5c 65 |\csname |date#1\e|
|00002a60| 6e 64 63 73 6e 61 6d 65 | 0a 25 20 20 20 20 5c 65 |ndcsname|.% \e|
|00002a70| 6e 64 7b 6d 61 63 72 6f | 63 6f 64 65 7d 0a 25 20 |nd{macro|code}.% |
|00002a80| 4e 6f 77 20 77 65 20 72 | 65 64 65 66 69 6e 65 20 |Now we r|edefine |
|00002a90| 7c 5c 64 61 74 65 7c 5c | 65 6d 70 68 7b 6c 61 6e ||\date|\|emph{lan|
|00002aa0| 67 75 61 67 65 7d 2e 20 | 49 74 20 66 69 72 73 74 |guage}. |It first|
|00002ab0| 20 64 65 66 69 6e 65 73 | 20 7c 5c 40 64 61 79 6e | defines| |\@dayn|
|00002ac0| 61 6d 65 7c 20 61 6e 64 | 0a 25 20 74 68 65 6e 20 |ame| and|.% then |
|00002ad0| 63 61 6c 6c 73 20 73 61 | 76 65 64 20 6d 61 63 72 |calls sa|ved macr|
|00002ae0| 6f 2e 0a 25 20 20 20 20 | 5c 62 65 67 69 6e 7b 6d |o..% |\begin{m|
|00002af0| 61 63 72 6f 63 6f 64 65 | 7d 0a 20 20 20 20 5c 65 |acrocode|}. \e|
|00002b00| 78 70 61 6e 64 61 66 74 | 65 72 5c 64 65 66 5c 63 |xpandaft|er\def\c|
|00002b10| 73 6e 61 6d 65 20 64 61 | 74 65 23 31 5c 65 6e 64 |sname da|te#1\end|
|00002b20| 63 73 6e 61 6d 65 7b 25 | 0a 20 20 20 20 20 20 5c |csname{%|. \|
|00002b30| 6c 65 74 5c 40 64 61 79 | 6e 61 6d 65 3d 5c 63 73 |let\@day|name=\cs|
|00002b40| 6e 61 6d 65 20 64 61 79 | 6e 61 6d 65 40 23 31 5c |name day|name@#1\|
|00002b50| 65 6e 64 63 73 6e 61 6d | 65 5c 63 73 6e 61 6d 65 |endcsnam|e\csname|
|00002b60| 20 44 40 64 61 74 65 23 | 31 5c 65 6e 64 63 73 6e | D@date#|1\endcsn|
|00002b70| 61 6d 65 7d 25 0a 25 20 | 20 20 20 5c 65 6e 64 7b |ame}%.% | \end{|
|00002b80| 6d 61 63 72 6f 63 6f 64 | 65 7d 0a 25 20 4c 61 73 |macrocod|e}.% Las|
|00002b90| 74 20 77 65 20 68 61 76 | 65 20 74 6f 20 73 65 6c |t we hav|e to sel|
|00002ba0| 65 63 74 20 74 68 69 73 | 20 6e 65 77 20 7c 5c 64 |ect this| new |\d|
|00002bb0| 61 74 65 7c 5c 65 6d 70 | 68 7b 6c 61 6e 67 75 61 |ate|\emp|h{langua|
|00002bc0| 67 65 7d 2c 20 69 66 20 | 74 68 65 20 61 63 74 75 |ge}, if |the actu|
|00002bd0| 61 6c 0a 25 20 6c 61 6e | 67 75 61 67 65 20 69 73 |al.% lan|guage is|
|00002be0| 20 74 68 65 20 6e 65 77 | 20 6c 61 6e 67 75 61 67 | the new| languag|
|00002bf0| 65 2e 20 57 65 20 64 6f | 20 74 68 69 73 20 75 73 |e. We do| this us|
|00002c00| 69 6e 67 20 74 68 65 0a | 25 20 5c 74 65 78 74 74 |ing the.|% \textt|
|00002c10| 74 7b 67 65 72 6d 61 6e | 2e 73 74 79 7d 2d 6c 61 |t{german|.sty}-la|
|00002c20| 6e 67 75 61 67 65 2d 73 | 65 6c 65 63 74 69 6f 6e |nguage-s|election|
|00002c30| 20 77 69 74 68 20 7c 5c | 6c 40 7c 5c 65 6d 70 68 | with |\|l@|\emph|
|00002c40| 7b 6c 61 6e 67 75 61 67 | 65 7d 3a 0a 25 20 20 20 |{languag|e}:.% |
|00002c50| 20 5c 62 65 67 69 6e 7b | 6d 61 63 72 6f 63 6f 64 | \begin{|macrocod|
|00002c60| 65 7d 0a 20 20 20 20 5c | 65 78 70 61 6e 64 61 66 |e}. \|expandaf|
|00002c70| 74 65 72 5c 69 66 78 5c | 63 73 6e 61 6d 65 20 6c |ter\ifx\|csname l|
|00002c80| 40 23 31 5c 65 6e 64 63 | 73 6e 61 6d 65 5c 72 65 |@#1\endc|sname\re|
|00002c90| 6c 61 78 0a 20 20 20 20 | 5c 65 6c 73 65 0a 20 20 |lax. |\else. |
|00002ca0| 20 20 20 20 5c 69 66 6e | 75 6d 5c 6c 61 6e 67 75 | \ifn|um\langu|
|00002cb0| 61 67 65 3d 5c 63 73 6e | 61 6d 65 20 6c 40 23 31 |age=\csn|ame l@#1|
|00002cc0| 5c 65 6e 64 63 73 6e 61 | 6d 65 0a 20 20 20 20 20 |\endcsna|me. |
|00002cd0| 20 20 20 5c 63 73 6e 61 | 6d 65 20 64 61 74 65 23 | \csna|me date#|
|00002ce0| 31 5c 65 6e 64 63 73 6e | 61 6d 65 0a 20 20 20 20 |1\endcsn|ame. |
|00002cf0| 20 20 5c 66 69 0a 20 20 | 20 20 5c 66 69 0a 20 20 | \fi. | \fi. |
|00002d00| 7d 0a 7d 0a 25 20 20 20 | 20 5c 65 6e 64 7b 6d 61 |}.}.% | \end{ma|
|00002d10| 63 72 6f 63 6f 64 65 7d | 0a 25 20 20 5c 65 6e 64 |crocode}|.% \end|
|00002d20| 7b 6d 61 63 72 6f 7d 0a | 25 0a 25 20 4c 61 73 74 |{macro}.|%.% Last|
|00002d30| 20 62 75 74 20 6e 6f 74 | 20 6c 65 61 73 74 20 66 | but not| least f|
|00002d40| 69 6c 65 20 5c 74 65 78 | 74 74 74 7b 73 63 72 64 |ile \tex|ttt{scrd|
|00002d50| 61 74 65 2e 63 66 67 7d | 20 68 61 73 20 74 6f 20 |ate.cfg}| has to |
|00002d60| 62 65 20 69 6e 63 6c 75 | 64 65 64 2c 20 69 66 20 |be inclu|ded, if |
|00002d70| 69 74 20 65 78 69 73 74 | 73 2e 0a 25 20 20 20 20 |it exist|s..% |
|00002d80| 5c 62 65 67 69 6e 7b 6d | 61 63 72 6f 63 6f 64 65 |\begin{m|acrocode|
|00002d90| 7d 0a 5c 49 6e 70 75 74 | 49 66 46 69 6c 65 45 78 |}.\Input|IfFileEx|
|00002da0| 69 73 74 73 7b 73 63 72 | 64 61 74 65 2e 63 66 67 |ists{scr|date.cfg|
|00002db0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 7b 5c 74 |}. | {\t|
|00002dc0| 79 70 65 6f 75 74 7b 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ypeout{*|********|
|00002dd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002de0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 5e 5e 4a 25 |********|****^^J%|
|00002df0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002e00| 20 20 20 20 20 20 2a 20 | 4c 6f 63 61 6c 20 63 6f | * |Local co|
|00002e10| 6e 66 69 67 20 66 69 6c | 65 20 73 63 72 64 61 74 |nfig fil|e scrdat|
|00002e20| 65 2e 63 66 67 20 75 73 | 65 64 5e 5e 4a 25 0a 20 |e.cfg us|ed^^J%. |
|00002e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e40| 20 20 20 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | ****|********|
|00002e50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 7d 7d 0a 20 20 20 20 |********|*}}. |
|00002e70| 20 20 20 20 20 20 20 7b | 7d 0a 25 20 20 20 20 5c | {|}.% \|
|00002e80| 65 6e 64 7b 6d 61 63 72 | 6f 63 6f 64 65 7d 0a 25 |end{macr|ocode}.%|
|00002e90| 0a 25 20 54 68 61 74 27 | 73 20 69 74 3a 0a 25 20 |.% That'|s it:.% |
|00002ea0| 20 20 20 5c 62 65 67 69 | 6e 7b 6d 61 63 72 6f 63 | \begi|n{macroc|
|00002eb0| 6f 64 65 7d 0a 25 3c 2f | 73 63 72 64 61 74 65 3e |ode}.%</|scrdate>|
|00002ec0| 0a 25 20 20 20 20 5c 65 | 6e 64 7b 6d 61 63 72 6f |.% \e|nd{macro|
|00002ed0| 63 6f 64 65 7d 0a 25 0a | 25 0a 25 20 5c 46 69 6e |code}.%.|%.% \Fin|
|00002ee0| 61 6c 65 0a 25 0a 5c 65 | 6e 64 69 6e 70 75 74 |ale.%.\e|ndinput |
+--------+-------------------------+-------------------------+--------+--------+